.TH std::chrono::leap_second_info 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::chrono::leap_second_info \- std::chrono::leap_second_info

.SH Synopsis
   Defined in header <chrono>
   struct leap_second_info {

       bool is_leap_second;           \fI(since C++20)\fP
       std::chrono::seconds elapsed;

   };

   A leap_second_info indicates whether a UTC time is during a positive leap second
   insertion and the total number of leap seconds between 1 January 1970 and the UTC
   time.

   leap_second_info has no base classes or members other than is_leap_second, elapsed,
   and implicitly declared special member functions.

.SH Member objects

   is_leap_second whether the UTC time is during a positive leap second insertion
                  \fI(public member object)\fP
   elapsed        the sum of leap seconds between 1 January 1970 and the UTC time
                  \fI(public member object)\fP

.SH Notes

   leap_second_info is typically obtained from std::chrono::get_leap_second_info.

.SH See also

   leap_second contains information about a leap second insertion
   (C++20)     \fI(class)\fP
